package com.example.service;

import com.example.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author: 21050134
 * @date: 2023/10/19 11:14
 * @description:
 */
@FeignClient(value = "spring-cloud-alibaba-seata-account-8007")
public interface AccountService {

	@PostMapping(value = "/account/decrease")
	CommonResult decrease(@RequestParam("userId") Long userId,@RequestParam("money") BigDecimal money);
}
